package com.firebird.app.kotlin.stock.ui.addbank.model

import com.firebird.app.kotlin.stock.data.BankData
import com.firebird.app.kotlin.stock.data.SimpleBean
import com.firebird.app.kotlin.stock.net.RetrofitClient
import com.firebird.app.kotlin.stock.ui.addbank.contract.AddBankContract
import io.reactivex.Flowable
import okhttp3.RequestBody
import retrofit2.Call


class AddBankModel : AddBankContract.Model {
    override fun getData(body: RequestBody?): Call<BankData?>? {
        return RetrofitClient.instance?.api?.getBankData(body)
    }

    override fun getBindData(body: RequestBody?): Flowable<SimpleBean?>? {
        return RetrofitClient.instance?.api?.getBindBankData(body)
    }
}